home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
001
/
pibt3sp4.arc
/
VIEWPMPT.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1985-06-30
|
3KB
|
79 lines
(*----------------------------------------------------------------------*)
(* View_Prompt --- prompt for end-of-screen *)
(*----------------------------------------------------------------------*)
PROCEDURE View_Prompt( VAR View_Done : BOOLEAN; VAR View_Count : INTEGER );
(*----------------------------------------------------------------------*)
(* *)
(* Procedure: View_Prompt *)
(* *)
(* Purpose: Issues end-of-screen prompt for view routines *)
(* *)
(* Calling Sequence: *)
(* *)
(* View_Prompt( VAR View_Done : BOOLEAN; *)
(* VAR View_Count : INTEGER ); *)
(* *)
(* View_Done --- TRUE if Stop option selected here *)
(* View_Count --- Count of lines per panel. May be changed *)
(* here if C option selected. *)
(* *)
(* Calls: RvsVideoOn *)
(* RvsVideoOff *)
(* *)
(* Called by: *)
(* *)
(* View_A_File *)
(* View_A_Directory *)
(* Get_Area_Code *)
(* *)
(*----------------------------------------------------------------------*)
BEGIN (* View_Prompt *)
View_Count := 1;
View_Y := WhereY;
REPEAT
GoToXY( 1 , View_Y );
ClrEol;
RvsVideoOn( Menu_Text_Color , BackGround_Color );
WRITE('Enter CR to continue, S to stop, ',
'C to continue non-stop: ');
RvsVideoOff( Menu_Text_Color , BackGround_Color );
READ( View_Char );
IF LENGTH( View_Char ) > 0 Then
IF View_Char[1] <> CHR(ESC) Then
BEGIN
View_Char := UPCASE( View_Char[1] );
END
ELSE
BEGIN
READ( View_Char );
View_Char := UPCASE( View_Char[1] );
END
ELSE
View_Char := ' ';
UNTIL( View_Char[1] IN ['S', 'C', ' '] );
CASE View_Char[1] Of
'C': View_Count := -MaxInt;
'S': View_Done := TRUE;
ELSE
;
END (* CASE *);
GoToXY( 1 , View_Y );
ClrEol;
GoToXY( 1 , View_Y );
END (* View_Prompt *);